"""
@Version: 1.0
@Project: BeautyReport
@Author: sws
@Data: 2020/9/22 下午15:36
@File: test_all.py
@License: MIT
"""

################################   raise NameError('前提条件不足，没有值')
import os
import unittest
from BeautifulReport import BeautifulReport

if __name__ == '__main__':
    #构造测试集
    #test_suite = unittest.TestSuite()

    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_login_model.py')
    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_swsxs_model.py')
    #test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_*_model.py')
    test_suite = unittest.defaultTestLoader.discover('../FengChao_Case/Base_Case', pattern='test_Smoke.py')

    result = BeautifulReport(test_suite)
    result.report(filename='测试报告', description='测试deafult报告',report_dir=os.getcwd())
